-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-35488: Add test for ** glob matching in pathlib #11171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-35488: Add test for ** glob matching in pathlib #11171
Conversation
Lib/test/test_pathlib.py
Outdated
| self.assertTrue(P('/a/b.py').match('/a/*.py')) | ||
| self.assertFalse(P('/ab.py').match('/a/*.py')) | ||
| self.assertFalse(P('/a/b/c.py').match('/a/*.py')) | ||
| # Multi-part glob-style pattern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Multi-part glob-style pattern | |
| # Multi-part glob-style pattern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of the other single-line comments in this file have periods? I can update all of them or just this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can update all of them since this isn't code and it's easy to see what changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brettcannon 👍 done in 0e2800a
|
@tonybaloney can you add a news entry for your changes? You can use https://blurb-it.herokuapp.com/ to do it entirely in the browser. Otherwise LGTM! |
|
@brettcannon done! |
|
Thanks! |
See https://bugs.python.org/issue35488
pathlib Path.match does not support glob-style ** recursive pattern matching.
Add a test to verify this behaviour as unsupported. This will also follow a documentation PR.
See also https://bugs.python.org/issue29249
https://bugs.python.org/issue35488